// 项目费用 -> 付款明细和资金流水
import request from '@/utils/request'

const financeApi = {
  // 付款明细
  paymentList: '/boss/finance/record/list',
  paymentDetail: '/boss/finance/record/detail',
  paymentExport: '/boss/finance/recordExport',
  // 资金流水
  financeList: '/boss/finance/flow/list',
  financeDetail: '/boss/finance/flow/detail',
  financeExport: '/boss/finance/flowExport'
}

export function getPaymentList (parameter) {
  return request({
    url: financeApi.paymentList,
    method: 'post',
    data: parameter
  })
}
export function getFinanceList (parameter) {
  return request({
    url: financeApi.financeList,
    method: 'post',
    data: parameter
  })
}

export function getPayentExport (parameter) {
  return request({
    url: financeApi.paymentExport,
    method: 'get',
    params: parameter
  })
}

export function getFinanceExport (parameter) {
  return request({
    url: financeApi.financeExport,
    method: 'get',
    params: parameter
  })
}
